var should = require('should');
var moment = require('moment');
var assert = require('assert');
var _ = require('lodash');
var rebelConf = require('../../app/config/rebelConf');
var dataApi = require('../../app/libs/dataApi');
var PlayerManager = require('../../app/libs/playerManager');
var config = require('../config');

suite('rebelConf', function () {
    suite('getRebelWaveLength', function () {
        test('获取来袭的波数', function () {
            rebelConf.getRebelWaveLength(2001).should.equal(20);
        });
    });

    suite('getRebelRewardConf', function () {
        test('获取来袭的奖励', function () {
            assert(rebelConf.getRebelRewardConf(2001) != null, true);
        });
    });

    suite('getRebelConf', function () {
        test('获取来袭的配置', function () {
            assert(rebelConf.getRebelConf(2001) != null, true);
        });
    });

    suite('getPreRebelId', function () {
        test('获取来袭的前置', function () {
            assert(rebelConf.getPreRebelId(2002) == 2001, true);
        });
    });

    suite('getWaveConf', function () {
        test('获取来袭的配置', function () {
            assert(rebelConf.getWaveConf(2002) != null, true);
        });
    });
});
